package com.itheima.health.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.health.dao.CleanDao;
import com.itheima.health.service.CleanService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

/**
 * Created by Wu Ji  on 2020/12/6 17:11
 */
@Service(interfaceClass = CleanService.class )
public class CleanServiceImpl implements CleanService {
    @Autowired
    private CleanDao cleanDao;
    @Override
    public List<Map> findOrderInfoBydate(String firstDay, String lastDay) {
        return cleanDao.findOrderInfoBydate(firstDay,lastDay);
    }

    @Override
    public void deleteDate(String fifirstDay, String lastDay) {
        cleanDao.deleteDate(fifirstDay,lastDay);
    }

    @Override
    public void ChangeOrderStates(String yesterday, String today) {
        cleanDao.ChangeOrderStates(yesterday,today);
    }
}
